import request from '@/utils/request'

// 查询选择题列表
export function listChoicequestion(query) {
  return request({
    url: '/zzxx/choicequestion/list',
    method: 'get',
    params: query
  })
}

// 查询选择题详细
export function getChoicequestion(id) {
  return request({
    url: '/zzxx/choicequestion/' + id,
    method: 'get'
  })
}

// 新增选择题
export function addChoicequestion(data) {
  return request({
    url: '/zzxx/choicequestion',
    method: 'post',
    data: data
  })
}

// 修改选择题
export function updateChoicequestion(data) {
  return request({
    url: '/zzxx/choicequestion',
    method: 'put',
    data: data
  })
}

// 删除选择题
export function delChoicequestion(id) {
  return request({
    url: '/zzxx/choicequestion/' + id,
    method: 'delete'
  })
}
